Add delgpl, saroute tests.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 19 Jan 2004 18:12:05 +0000 (18:12 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 19 Jan 2004 18:12:05 +0000 (18:12 +0000)
gpsbabel/testo

index 02b9b5e4821a151441f8c559efa69ae27df1033c..027248baf75c3538e079f878866070c0ec429ca6 100755 (executable)
@@ -468,7 +468,7 @@ ${DIFF}  ${TMPDIR}/reverse1.arc  ${TMPDIR}/reverse2.arc > /dev/null && {
 }
 
 #
-# Geoniche: No referene file was available, so we created one and just
+# Geoniche: No reference file was available, so we created one and just
 # test it against itself.
 #
 rm -f ${TMPDIR}/gn.pdb ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
@@ -477,4 +477,21 @@ ${PNAME} -i geoniche -f reference/geoniche.pdb -o gpx -F ${TMPDIR}/1.gpx
 ${PNAME} -i geoniche -f ${TMPDIR}/gn.pdb -o gpx -F ${TMPDIR}/2.gpx
 ${DIFF} ${TMPDIR}/1.gpx ${TMPDIR}/2.gpx
 
+#
+# saroute covers *.anr, *.rte, and *.rtd, but I only have an .anr for testing.
+# Unfortunately for us, this is a read-only format for now.
+#
+${PNAME} -t -i saroute -f reference/track/i65.anr -o gpx -F ${TMPDIR}/gpl1.gpx
+${PNAME} -t -i gpx -f reference/track/i65.anr.gpx -o gpx -F ${TMPDIR}/gpl2.gpx
+${DIFF} ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx
+
+#
+# Delorme GPL file.   This is sort of a track format.
+#
+rm -f ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx ${TMPDIR}/gpl1.gpl
+${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpx -F ${TMPDIR}/gpl1.gpx
+${PNAME} -t -i gpl -f reference/track/webpark1.gpl -o gpl -F ${TMPDIR}/gpl1.gpl
+${PNAME} -t -i gpl -f ${TMPDIR}/gpl1.gpl -o gpx -F ${TMPDIR}/gpl2.gpx
+${DIFF} ${TMPDIR}/gpl1.gpx ${TMPDIR}/gpl2.gpx
+
 exit 0